package a.j.a;

import a.c.e;
import a.d.u;
import a.j.ld;
import a.j.md;
import a.j.qe;

import java.awt.*;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.ObjectInputStream;
import java.io.ObjectOutputStream;
import java.util.Map;

public class n
  extends md
  implements f
{
  private boolean fb = true;
  private boolean gb;
  private boolean hb;
  private double ib = 100.0D;
  private double jb = 80.0D;
  private double kb;
  private double lb;
  private double mb;
  private double nb;
  private double ob = 15.0D;
  private double pb = 15.0D;
  private double qb = 15.0D;
  private double rb;
  private boolean sb;
  private a_ tb;
  static Class ub;
  static Class vb;
  static Class wb;
  static Class xb;
  static Class yb;
  static Class zb;
  static Class Ab;
  public static boolean Bb;
  
  public n()
  {
    this.rb = 15.0D;
    a(true);
  }
  
  public n(ld paramld)
  {
    super(paramld);
    if (j.v == 0)
    {
      this.rb = 15.0D;
      if (!(paramld instanceof n)) {}
    }
    else
    {
      a((n)paramld);
    }
  }
  
  protected void a(md parammd)
  {
    a(false);
    super.a(parammd);
    if ((j.v != 0) || ((parammd instanceof n)))
    {
      n localn = (n)parammd;
      c(localn.j());
      b(localn.i());
      h(localn.W());
      i(localn.X());
      b(localn.h());
      a(localn.U());
    }
  }
  
  public static Map T()
  {
    int i = j.v;
    Map localMap = e().a();
    a.j.s locals = new a.j.s();
    h localh = new h(locals);
    c localc = new c();
    if (i == 0) {}
    localMap.put(ub == null ? (n.ub = g("a.j.a.n$b_")) : ub, localc);
    if (i == 0) {}
    localMap.put(vb == null ? (n.vb = g("a.j.md$k_")) : vb, localc);
    if (i == 0) {}
    localMap.put(wb == null ? (n.wb = g("a.j.md$h_")) : wb, localc);
    if (i == 0) {}
    localMap.put(xb == null ? (n.xb = g("a.j.md$t_")) : xb, localh);
    if (i == 0) {}
    localMap.put(yb == null ? (n.yb = g("a.j.md$l_")) : yb, localh);
    if (i == 0) {}
    localMap.put(zb == null ? (n.zb = g("a.j.md$m_")) : zb, localh);
    if (i == 0) {}
    localMap.put(Ab == null ? (n.Ab = g("a.j.md$i_")) : Ab, localh);
    return localMap;
  }
  
  public void b(Rectangle2D paramRectangle2D)
  {
    int i = j.v;
    if (i == 0) {
      if (this.sb) {
        return;
      }
    }
    if (i == 0) {
      if (this.n.m != null)
      {
        f(true);
        try
        {
          this.sb = true;
          this.n.m.e(this);
        }
        finally
        {
          this.sb = false;
        }
      }
    }
    super.b(paramRectangle2D);
  }
  
  public boolean U()
  {
    return this.fb;
  }
  
  public void a(boolean paramBoolean)
  {
    this.fb = paramBoolean;
  }
  
  public boolean h()
  {
    return this.gb;
  }
  
  public boolean V()
  {
    return this.hb;
  }
  
  public void f(boolean paramBoolean)
  {
    this.hb = paramBoolean;
  }
  
  public double W()
  {
    return this.ib;
  }
  
  public void h(double paramDouble)
  {
    this.ib = paramDouble;
  }
  
  public double X()
  {
    return this.jb;
  }
  
  public void i(double paramDouble)
  {
    this.jb = paramDouble;
  }
  
  public ld a(ld paramld)
  {
    return new n(paramld);
  }
  
  public void b(boolean paramBoolean)
  {
    int i = j.v;
    if (i == 0)
    {
      if (this.gb == paramBoolean) {
        return;
      }
      this.gb = paramBoolean;
      if (i != 0) {}
    }
    else
    {
      if (paramBoolean)
      {
        qe localqe = L();
        if (i == 0)
        {
          if (localqe != null)
          {
            double d1 = localqe.k().b();
            double d2 = localqe.k().c();
            if (i == 0) {
              if (this.ib < d1) {
                this.ib = d1;
              }
            }
            if (i != 0) {
              break label135;
            }
            if (this.jb < d2) {
              this.jb = d2;
            }
          }
          super.a(this.y, this.z, this.ib, this.jb);
        }
        else
        {
          if (i != 0) {
            break label159;
          }
        }
        label135:
        if (!j.u) {
          break label154;
        }
      }
      this.ib = this.A;
    }
    this.jb = this.B;
    label154:
    f(true);
    label159:
    C();
  }
  
  public Rectangle2D.Double O()
  {
    int i = j.v;
    if (i == 0) {
      if (V())
      {
        if (i != 0) {
          break label47;
        }
        if (this.n.m != null)
        {
          this.n.m.e(this);
          C();
        }
      }
    }
    label47:
    return super.O();
  }
  
  public u j()
  {
    return new u(this.kb, this.mb, this.lb, this.nb);
  }
  
  public u i()
  {
    return new u(this.ob, this.qb, this.pb, this.rb);
  }
  
  public static i Y()
  {
    return new o.c_();
  }
  
  public b K()
  {
    int i = j.v;
    if (i == 0)
    {
      if (this.n.m != null)
      {
        if (i == 0) {
          if (this.tb == null) {
            this.tb = new a_(this);
          }
        }
        return this.tb;
      }
      this.tb = null;
    }
    return super.K();
  }
  
  public void a(Insets paramInsets)
  {
    b(new u(paramInsets));
  }
  
  public void b(u paramu)
  {
    this.pb = paramu.d;
    this.ob = paramu.b;
    this.qb = paramu.c;
    this.rb = paramu.e;
    if ((j.v != 0) || (this.n.m != null)) {
      this.n.m.e(this);
    }
  }
  
  public void b(Insets paramInsets)
  {
    c(new u(paramInsets));
  }
  
  public void c(u paramu)
  {
    this.kb = paramu.b;
    this.lb = paramu.d;
    this.nb = paramu.e;
    this.mb = paramu.c;
    if ((j.v != 0) || (this.n.m != null)) {
      this.n.m.e(this);
    }
  }
  
  public void a(ObjectInputStream paramObjectInputStream)
    throws IOException, ClassNotFoundException
  {
    if (j.v == 0) {}
    switch (paramObjectInputStream.readByte())
    {
    case 0: 
      super.a(paramObjectInputStream);
      this.fb = paramObjectInputStream.readBoolean();
      this.jb = paramObjectInputStream.readDouble();
      this.ib = paramObjectInputStream.readDouble();
      this.lb = paramObjectInputStream.readDouble();
      this.mb = paramObjectInputStream.readDouble();
      this.kb = paramObjectInputStream.readDouble();
      this.nb = paramObjectInputStream.readDouble();
      this.pb = paramObjectInputStream.readDouble();
      this.qb = paramObjectInputStream.readDouble();
      this.ob = paramObjectInputStream.readDouble();
      this.rb = paramObjectInputStream.readDouble();
      this.gb = paramObjectInputStream.readBoolean();
      if (!j.u) {
        break;
      }
    default: 
      throw new a.e.c();
    }
  }
  
  public void a(ObjectOutputStream paramObjectOutputStream)
    throws IOException
  {
    paramObjectOutputStream.writeByte(0);
    super.a(paramObjectOutputStream);
    paramObjectOutputStream.writeBoolean(this.fb);
    paramObjectOutputStream.writeDouble(this.jb);
    paramObjectOutputStream.writeDouble(this.ib);
    paramObjectOutputStream.writeDouble(this.lb);
    paramObjectOutputStream.writeDouble(this.mb);
    paramObjectOutputStream.writeDouble(this.kb);
    paramObjectOutputStream.writeDouble(this.nb);
    paramObjectOutputStream.writeDouble(this.pb);
    paramObjectOutputStream.writeDouble(this.qb);
    paramObjectOutputStream.writeDouble(this.ob);
    paramObjectOutputStream.writeDouble(this.rb);
    paramObjectOutputStream.writeBoolean(this.gb);
  }
  
  static Class g(String paramString)
  {
    try
    {
      return Class.forName(paramString);
    }
    catch (ClassNotFoundException localClassNotFoundException)
    {
      throw new NoClassDefFoundError(localClassNotFoundException.getMessage());
    }
  }
  
  public static abstract interface b_
  {
    public abstract Rectangle2D c(ld paramld);
    
    public abstract u d(ld paramld);
    
    public abstract void e(ld paramld);
  }
  
  static final class a_
    implements b
  {
    final n a;
    
    public a_(n paramn)
    {
      this.a = paramn;
    }
    
    public void a(boolean paramBoolean)
    {
      int i = j.v;
      boolean bool = j.u;
      if (i == 0) {
        if (!this.a.fb)
        {
          if (i != 0) {
            break label361;
          }
          if (paramBoolean)
          {
            if (i == 0)
            {
              if (!this.a.h())
              {
                if (i != 0) {
                  break label345;
                }
                if (!a())
                {
                  n.b_ localb_ = this.a.n.m;
                  Rectangle2D localRectangle2D = localb_.c(this.a);
                  double d1 = localRectangle2D.getX() + localRectangle2D.getWidth();
                  double d2 = localRectangle2D.getY() + localRectangle2D.getHeight();
                  this.a.nb = ((i != 0) || (this.a.y + this.a.A > d1) ? this.a.y + this.a.A - d1 : 0.0D);
                  this.a.kb = ((i != 0) || (this.a.z < localRectangle2D.getY()) ? localRectangle2D.getY() - this.a.z : 0.0D);
                  this.a.lb = ((i != 0) || (this.a.z + this.a.B > d2) ? this.a.z + this.a.B - d2 : 0.0D);
                  this.a.mb = ((i != 0) || (this.a.y < localRectangle2D.getX()) ? localRectangle2D.getX() - this.a.y : 0.0D);
                  this.a.fb = paramBoolean;
                  localb_.e(this.a);
                  if (i != 0) {
                    break label345;
                  }
                  if (!bool) {
                    return;
                  }
                }
              }
              this.a.fb = paramBoolean;
            }
            label345:
            if ((i == 0) && (!bool)) {
              return;
            }
          }
        }
      }
      label361:
      this.a.fb = paramBoolean;
    }
    
    public boolean e()
    {
      int i = j.v;
      if ((i != 0) || (this.a.U())) {
        if (i != 0) {}
      }
      return !this.a.h();
    }
    
    public Rectangle2D f()
    {
      n.b_ localb_ = this.a.n.m;
      if ((j.v != 0) || (localb_ != null)) {
        return localb_.c(this.a);
      }
      Rectangle2D.Double localDouble = new Rectangle2D.Double(0.0D, 0.0D, -1.0D, -1.0D);
      this.a.b(localDouble);
      return localDouble;
    }
    
    public void a(u paramu)
    {
      this.a.c(paramu);
    }
    
    public u g()
    {
      n.b_ localb_ = this.a.n.m;
      if ((j.v != 0) || (localb_ != null)) {
        return localb_.d(this.a);
      }
      return new u(0.0D, 0.0D, 0.0D, 0.0D);
    }
    
    private boolean a()
    {
      int i = j.v;
      e locale = this.a.n();
      if (locale == null) {
        return true;
      }
      j localj = b();
      if ((i != 0) || (localj != null)) {
        if (i != 0) {
          break label49;
        }
      }
      label49:
      return !localj.r(locale).e();
    }
    
    private j b()
    {
      e locale = this.a.n();
      if (j.v == 0) {
        if (locale == null) {
          return null;
        }
      }
      return j.a(locale.g());
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.j.a.n

 * JD-Core Version:    0.7.0.1

 */